<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{$tt}></title>
<link href="<{$smarty.const.BASEPATH}>/css/base.css" rel="stylesheet"/>
<link href="<{$smarty.const.BASEPATH}>/css/admin_style.css" rel="stylesheet"/>
<link href="<{$smarty.const.BASEPATH}>/css/css.css" type="text/css" rel="stylesheet" />
<link href="<{$smarty.const.BASEPATH}>/css/validform.css" type="text/css" rel="stylesheet" />

<script type="text/javascript" src="<{$smarty.const.WEBDIR}>js/jquery.min.js"></script>
<script type="text/javascript" src="<{$smarty.const.WEBDIR}>js/validform/js/Validform.min.js"></script>
<script type="text/javascript" src="<{$smarty.const.WEBDIR}>xheditor/xheditor-zh-cn.min.js"></script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$.extend(xheditor.settings,{skin:'nostyle',shortcuts:{'ctrl+enter':submitForm}});//修改默认设置
	$('#content').xheditor({forcePtag:false,urlType:'rel',upLinkUrl:"<{spUrl c=upload a=file immediate=1}>",upLinkExt:"zip,rar,txt,word,xls,pdt",upImgUrl:"<{spUrl c=upload a=file immediate=1}>",upImgExt:"jpg,jpeg,gif,png,bmp",upFlashUrl:"<{spUrl c=upload a=file immediate=1}>",upFlashExt:"swf",upMediaUrl:"<{spUrl c=upload a=file immediate=1}>",upMediaExt:"wmv,avi,wma,mp3,mid"});
}
function submitForm(){$('#frmDemo').submit();}
</script>

</head>

<body>

<script type="text/javascript">
$(function(){ // 当页面加载完毕的时候
$(".registerform:last").Validform({
		tiptype:2,
		ajaxPost:true,
		callback:function(data){
			//返回数据data是json格式，{"info":"demo info","status":"y"}
			//info: 输出提示信息;
			//status: 返回提交数据的状态,是否提交成功。如可以用"y"表示提交成功，"n"表示提交失败，在ajax_post.php文件返回数据里自定字符，主要用在callback函数里根据该值执行相应的回调操作;
			//你也可以在ajax_post.php文件返回更多信息在这里获取，进行相应操作；
			
			//这里执行回调操作;
			if(data.status=="y"){
				setTimeout(function(){
					$.Hidemsg(); //公用方法关闭信息提示框;
				},2000);
                //location.href="<{spUrl c=news a=index}>";
			}
		} 
	});
});
</script>
<div style="width:90%;height:auto;" class="Tk text-align-l">
<span id="ex2result" style="display: none;"></span>
<div id="navigator"><span class="height30 font-size-14 margin-l-r-4"><a href="#">◆<{$addtitle}></a></span></div>
   <form class="registerform" action="<{spUrl c=mail a=save}>"> 

   <table width="100%" style="table-layout:fixed;" class="tdsize">
   <tr>
   <td width="50">*分类：</td>
   <td width="320"><select name="type" id="type">
<{html_options options=$typearr selected=$type}>
</select></td><td><div class="Validform_checktip">分类必须选择!</div></td></tr>
        <tr>
            <td width="50">*标题：</td>
            <td width="320"><input type="text" value="<{$mail.title}>" id="title" name="title" class="inputxt"  datatype="*" nullmsg="请输入标题！"  /></td>
            <td><div class="Validform_checktip">标题不能为空!</div></td>
        </tr>        
        <tr>
            <td>*描述：</td>
            <td colspan="2"><textarea name="content" id="content" rows="12" cols="80" style="width: 700px;"><{$mail.content}></textarea></td>
        </tr>



        <tr>
            <td></td>
            <td colspan="2" style="padding:10px 0 18px 0;">
                <input type="hidden" name='action' id='action' value="<{$action}>"/>
                <input type="hidden" name='id' id='id' value="<{$mail.id}>"/>
                <input class="newjh" type="submit" value="提 交" /> <input type="reset" value="重 置" />
            </td>
        </tr>
    </table>
</form>
                   
                      
                     


</div>
</body>

</html>